<!doctype html>
<html class="no-js" lang="en">
  <head>
    <title>ToDo Application</title>
  </head>

    <div>
      <h2>Mark the job as completed</h2>

      {% if messages %}
      <ul>
        {% for message in messages %}
            <li>{{ message }}</li>
        {% endfor %}
      </ul>
      {% endif %}

      <form method="POST" action="{% url 'todo:done_job' %}">
        {% csrf_token %}

        <input type="text" placeholder="job id" name="job_id">

        <input type="submit" value="Done The Job">
      </form>

      <form method="GET" action="{% url 'todo:index' %}">
        {% csrf_token %}

        <input type="submit" value="Menu">
      </form>
    </div>
  </body>
</html>
